#include<stdio.h>
int main()
{
	int a = 1, b = 1, sum = 0;
	for (a = 1; a <= 1000; a++)
	{
		sum = 0;
		for (b = 1; b < a; b++)
		{
			if (a % b == 0)
				sum = sum + b;
		}
		if (sum == a)
		{
			printf("%d its factors are ", a);
			for (b = 1; b < a; b++)
				if (a % b == 0)
					printf("%d,", b);
			printf("\n");
		}
	}
	return 0;
}



#include<stdio.h>
int main()
{
	double H = 100;
	double a = 0;
	int b = 1;
	for (b = 1; b <= 10; b++)
	{
		a += 1.5 * H;
		H = H / 2;
	}
	printf("第十次下落经过的高度为%lf\n", a - H);
	printf("第十次下落反弹的高度为%lf\n", H);
	return 0;
}